<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<ui:composition>
	<h:form id="leftMenuForm" style="margin:0px;">
		<div class="leftMenu noprint" id="leftMenu">
			<div class="leftMenuArea" id="leftMenuArea">
				<br />
				<p:accordionPanel value="#{navigationBean.parentList}"
					var="parentItem" style="padding-left:21px;width:200px;"
					activeIndex="#{navigationBean.activeTabIndex}">
					<p:ajax event="tabChange" listener="#{navigationBean.onTabChange}" />
					<p:tab title="#{parentItem.title}">
						<h:panelGroup rendered="#{not empty parentItem.childList}">
							<ui:repeat value="#{parentItem.childList}" var="child"
								rowKeyVar="childIndex">
								<h:panelGroup rendered="#{not child.newIcon}">
									<a href="#{Application.contextRoot}#{child.link}"
										target="#{child.type}">#{child.title}</a>
								</h:panelGroup>
								<h:panelGroup rendered="#{child.newIcon}">
									<p:commandLink action="#{Application.getLink}"
										value="#{child.title}" target="#{child.type}">
										<f:param name="link" value="#{child.link}" />
									</p:commandLink>
								</h:panelGroup>
							</ui:repeat>
						</h:panelGroup> 
					</p:tab>
				</p:accordionPanel>

				<!-- >div id="menuMarker" style="clear: both;">
               <img src="#{Application.contextRoot}/resources/images/spacer.gif" style="width: 180px:height:1px;" alt="" />
            </div-->
			</div>
		</div>
	</h:form>
</ui:composition>
</html>